COPYRIGHT
Single
MISC
General
HMI
VMI
Shareware
X-Axis
Y-Axis
Soft-Font
Push
Pop
Internal Font
Pitch
LPI
CR-LF-FF
Perf-Skip
Line-Draw
Portrait
Copies
Grey-Box
Landscape
Bold
Reset
Font-Print
Compressed-Print
Command-Line

Portrait Landscape Bold Reset Font-Print Single
Single Letter Commands

  p = Portrait Orientation            l = Landscape Orientation
  Switch paper orientation; causes a page eject if not blank.

  b = Set Bold on                     n = Revert to Normal Weight
  When in a font, (either internal or soft) that has both a bold and
  a normal weight, these codes will switch between them.

  f = font printout
  This will print all of the chars of the current font. In order
  to see a downloaded or internal font, you should switch to the proper
  orientation (portrait or landscape) first, then switch to the font.

  r = reset laserjet
  This will return some of the laserjet settings to their default
  at power-on. However, many of the settings available via this
  program are not affected by the reset command. Therefore, in order
  to be sure of the current status of the LJ, you should issue
  explicit control commands to enable the exact state you want.


General  Command-Line
General Information

     This program may also be keyed directly from the command line.
     Commands begin with a slash and are followed by the separate
     codes (in the same way as you would give them via the menu),
     with each command separated from the next by another slash,
     and with no intervening blanks.

     For example: ljcp /r/I0n/f
                   would reset the printer, switch to the ECMA-94
                   font set, and generate a font printout. The
                   quit (/q) command at the end is assumed.


     Another example, drawing a box, can be seen via the
                  Line-Draw help screen


HMI
HMI - Horizontal Motion Index

    The Horizontal Motion Index  designates the
    distance between columns. It is specified in 120th
    of an inch increments, and may range from 0 to 840
    It is valid to 4 decimal places. HMI is critically
    important with regard to fixed pitch fonts; less
    so with proportional fonts. The default is set by
    the pitch value in the font header. The factory
    default font is 10 pitch (HMI=12).


MISC
MISC - Miscellaneous functions

     1 : Set Page Size = Letter             a : Set top Margin (#lines)
     2 : Set Page Size = Legal              b : Set Text Length (#lines)
     3 : Set Italic on                      c : Set Left Margin (col #)
     4 : Set italic off                     d : Set Right Margin (col #)
     5 : Enable Underlining                 e : Clear Margins
     6 : Disable Underlining
     7 : Enable End-of-Line Wrap            x : User defined function
     8 : Disable End-of-line Wrap            (whatever you enter, will be
                                             appended to an ESC char & sent)

Setting Italics on and off implies that an italic version of the current
font has been downloaded. (Many of the HP Soft fonts have italic components)

End-of-line is defined by the HMI, the width of the chars in a soft font,
and the current right margin setting.

Use of the (Mx) function is provided so that the control codes available,
but not built in to this program may be entered in a straightforward
manner. Just type Mx...  replacing the dot(s) with the code you want sent.

VMI      LPI
Line Control

      Vertical Motion Index (VMI)

    The VMI sets the distance (in 1/48ths inch measurements) between
    rows. Possible values are 0 to 336. The factory default is 8,
    which corresponds to 6 lines per inch.

      Lines per inch   (LPI)

    Another way to specify the vertical spacing is in lines per inch.
    In this case, the number is not a numerator, but is the actual
    number of LPI. This is an easier method, but is limited to only
    ten possible values: 1, 2, 3, 4, 6, 8, 12, 16, 24, and 48.
    Therefore, a LPI setting of 12 (12 lines per inch) is equal
    to a VMI setting of 4 (4/48 inch increment per line) Values
    not accessible thru LPI settings must be indicated using VMI.
    In this, as in all codes, the laserjet will ignore commands
    that it does not understand, or that are otherwise invalid.


X-Axis  Y-Axis Push Pop
Cursor Movement Commands

          Push Cursor (u)  -  Pop  Cursor (o)

The HPLJ has a stack of 20 spaces where it can store previous cursor
positions and recall them later.  These paired commands alternately
place the old position on the stack, or return to it.

                    Addressing the LaserJet Cursor

The laserjet can address points along the page in measurements of
rows/cols, dots (at 300/inch) or in decipoints (at 720/in) Since the
printing resolution of the laser is only 300 dots/in, I have defaulted
the X- and Y- movement so that it is measured in dots.  By issuing the
X# and Y# commands, you can move the cursor about the page.  References
may be relative (starting from the current position) or absolute
(starting from the margin).  To indicate relative measure, precede the
number with a plus (+) sign.  Otherwise, the default (absolute) will be
assumed.  For Example, X300 would set the cursor one inch from the left
margin on the current line, while X+300 would set it one inch to the
right of its current position.  Judicious use of the push (save cursor
position) and pop (restore cursor position) can be of much help when
manually manipulating the laserjet's cursor.


Soft-Font
Soft Font Selection

    The laserjet has several ways to switch among its soft fonts.
    For example, changing the weight from normal to bold will make
    the LJ shift fonts, IF AND ONLY IF it finds a second font with
    exactly the same description as the first, but for the weight.
    Since it is common to have both normal and bold fonts available,
    this is a perfectly logical way to switch. The other common method
    involves a three step process.
          (1) - download the font.
          (2) - assign a fontid number.
          (3) - switch to the desired font.
    Depending on the amount of memory in your LJ, and the point size
    (height) of the fonts you download, you may repeat steps (1) and
    (2) several times, then do step (3) just before you want to use
    a particular font.
    This command - S# - performs step (3) only. You will have to do
    steps (1) & (2) before entering this program.

    The LJ can print 14 distinct fonts on a single page.

Internal Font
Internal Font Selection

    The laserjet has several builtin fonts. They are in the Courier
    typeface, and are available in normal and bold. There is also a
    line-printer font, which is a compressed font. And, all of these
    are available in both portrait and landscape.

    When the LJ was shipped from the factory, the power-on character
    set was the Roman-8 set. Thru the use of the control keys on the
    front of the printer, many users changed that to the IBM-US set.
    By asking for a font printout (press online, then press print
    fonts for a short time - a long press = self test) you can see the
    available fonts. Use this function to switch into each of them and
    then press 'f' to get a font printout. Some of you will be pleased
    to see that the copyright symbol is available in the '0N' set.

    Note: if you change internal fonts, the laserjet reset command
    will not revert the LJ to the power on font. You must issue another
    internal font command, or physically power off, then power on the LJ


Pitch Compressed-Print
Pitch Control/Compressed-Print

Pitch defines the space between letters when printed.

When a font is designed, the width of the letters is set by the
designers such that it appears balanced at some particular number
of characters per inch. When the font is downloaded and selected
the pitch information in the header automatically resets the HMI
value for the LJ. However, if you wish the print to appear wider
or narrower than originally called for, you may assign your own
pitch value.

Feel free to experiment. The builtin Courier has a pitch of 10.
(10 chars per inch, default). Try a setting of 12, or of 8 and
then print a page or so of text.

                       Compressed Print

The builtin Line-Print font has a pitch of 16.66. The command
   ljcp /p16.66  will switch into compressed print.


CR-LF-FF Perf-Skip
Emulating older printers

 In normal (default) circumstances, the laserjet will interpret
 each of these commands without embellishment, performing a
 carriage return when it receives a CR, dropping down one line
 when on receipt of an LF, and ejecting the page for an FF.
 However, many other printers automatically performed a CR and an
 LF upon receipt of either, and many programs were written expecting
 the printer to behave in such a manner. In order to accommodate to
 those interpretations, it is possible to instruct the LJ thus:
   0 : CR=CR, LF=LF, FF=FF
   1 : CR = CR+LF, LF=LF, FF=FF
   2 : CR=CR, LF=CR+LF, FF=CR+FF
   3 : CR = CR+LF, LF=CR+LF, FF=CR+FF
 And, to get these commands issued, just type C# where # is any
 of   (0, 1, 2, or 3) corresponding to the table above.

Additionally, the LJ can be told to skip over the "Perforation". This
term is a throwback to continuous form paper, and the hardware control
in the printer that caused the last line of the page, the actual
perforation, and the first line of the new page to be skipped
automatically. Setting this code off (X) may cause some data loss, but
will make those two extra lines (one each at thee top and bottom)
available. The default is on (S)

Line-Draw
Line Draw

 The Laser has the ability to draw a solid black rectangle.
 Visually, a rectangle that is very thin and very long is seen
 as a line. A horizontal line will have a long X-axis and a
 small Y-axis; a vertical line will be the other way around.

 To generate a black line, issue the command Bxxxx,yyyy where
 xxxx equals the x-axis length (at 300/in) and yyyy is the
 y-axis length.
 For example, to see a thin horizontal line 3 inches long use:
                       B900,5
 A vertical line of similar size would be indicated as
                       B5,900
 To draw a 3" square box at the current cursor location use:
         ljcp  /u/B5,900/B900,5/X+895/B5,900/o/Y+895/B895,5


Copies
Number of Copies

The laserjet can be set to print multiple copies of each page
it receives. The valid values are from 1 to 99.

Be careful! This is a good way to use up a lot of paper
in a big hurry.


Grey-Box
Create Grey shaded areas

The laser has the ability to shade any rectangular area in a
variety of grey shades and patterns. This program only implements
grey shading.
     There are three parameters.
           (1) X-axis measurement (at 300/in)
           (2) Y-axis measurement (at 300/in)
           (3) Percentage of grey shade (values 1 to 99)
To grey shade a 3 by 5 inch box, with 10% background shading
the command would be: G1500,900,10

The command : ljcp /u/Y-50/G300,70,10/o
    would put a 1-inch long grey area on the current line and
    return the cursor to its location before generating the box.
    (Thus the next 10 chars printed <default font assumed> would
    be on a grey shaded background.) Running this from within
    a dBase (tm) program, for example, would provide an easy way
    to emphasize some appropriate item.


Shareware
Shareware
      This package is Shareware. That means that it is neither free, nor in
 the Public Domain. It is a copyrighted software package, distributed on an
 'Approval' basis. If after a reasonable trial period (and here, I define
 reasonable as 30 days) you are still using the program, you are legally
 obligated to register and pay for it.

       Registration is accomplished by sending $25.00 to:
              Steve Kalman                  Note: Volume discounts
              197 Dean Street                     are available.
              Brooklyn, NY 11217           CompuServe ID: 75136,360
       Indicate your version number. If it is not current, I will send you
 a diskette with the most current version. (5.25" or 3.5" media available)

     This package has NO WARRANTIES. Specifically, the user agrees that I
 will be liable for neither actual nor consequential damages.

     As for other distribution; you may freely copy this program, post it on
 bulletin boards and the like, or distribute it as a part of a paid service,
 so long as the price charged for distribution is under $10.
     Registered users will get a letter from me telling them how to avoid
 seeing this screen every time they start the program.
                      Meanwhile, just press return to begin.
                      (C) Copyright 1988, by Stephen Kalman

COPYRIGHT
Copyright
     This program is (c) Copyright 1988 by Steve Kalman, all rights
reserved. Further, it is distributed as Shareware. For a further description
of your rights and obligations, see the help screen entitled "Shareware".

     The windowing functions used in this program are by Richard "Spike"
Evans, of Hardwood Software Associates. He may be contacted via CompuServe
[75026,3604] or directly thru HSA, at 364 Benson Rd. Northbridge, MA 01534

     LJCP was written in "C" and compiled using Microsoft C, Ver 5.0

     Further information on advanced use of the LaserJet Series II may
     be found in the LaserJet series II Technical Reference Manual. (Part
     number 33440-90905). It may be obtained from HP's direct marketing
     division at 800-538-8787 Also, the HP forum on CompuServe is an
     excellent source of good information.

